package com.dog.modules.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dog.modules.system.domain.SysParams;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author liuxk
* @description 针对表【sys_params(参数管理)】的数据库操作Mapper
* @createDate 2024-01-30 14:47:29
* @Entity com.dog.modules.system.domain.entity.SysParams
*/
public interface SysParamsMapper extends BaseMapper<SysParams> {


    default boolean isExist(String paramKey) {
        return this.exists(new QueryWrapper<SysParams>().eq("param_key", paramKey));
    }

    default SysParams get(String paramKey) {
        return this.selectOne(new QueryWrapper<SysParams>().eq("param_key", paramKey));
    }

}




